home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Interfaces / AppleScript 1.0 Interfaces / CIncludes / ASRegistry.h < prev    next >
Encoding:
Text File  |  1993-04-09  |  3.5 KB  |  150 lines  |  [TEXT/MPS ]

  1. ////////////////////////////////////////////////////////////////////////////////
  2. // Copyright © 1993 Apple Computer, Inc. All rights reserved.
  3. ////////////////////////////////////////////////////////////////////////////////
  4. // AppleScript Registry constants
  5. ////////////////////////////////////////////////////////////////////////////////
  6.  
  7. #ifndef __ASREGISTRY__
  8. #define __ASREGISTRY__
  9.  
  10. #ifndef __AEREGISTRY__
  11. #include <AERegistry.h>
  12. #endif
  13.  
  14. enum {
  15.     kASAppleScriptSuite            = 'ascr',
  16.     kASTypeNamesSuite            = 'tpnm',
  17. };
  18.  
  19. // Dynamic Terminologies:
  20. enum {
  21.     typeAETE                    = 'aete',
  22.     typeAEUT                    = 'aeut',
  23.     kGetAETE                    = 'gdte',
  24.     kGetAEUT                    = 'gdut',
  25.     kASCommentEvent                = 'cmnt',
  26.     kASLaunchEvent                = 'noop',
  27. };
  28.  
  29. // User-defined record fields:
  30. enum {
  31.     keyASUserRecordFields        = 'usrf',
  32.     typeUserRecordFields        = typeAEList,
  33. };
  34.  
  35. // Operator Events:
  36. enum {
  37.     keyASArg                    = 'arg ',
  38.     // Binary:
  39.     kASEqual                    = kAEEquals,
  40.     kASNotEqual                    = '≠   ',
  41.     kASGreaterThan                = kAEGreaterThan,
  42.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  43.     kASLessThan                    = kAELessThan,
  44.     kASLessThanOrEqual            = kAELessThanEquals,
  45.     kASStartsWith                = kAEBeginsWith,
  46.     kASEndsWith                    = kAEEndsWith,
  47.     kASContains                    = kAEContains,
  48.     // not currently sent:
  49.     kASConcatenate                = 'ccat',
  50.     kASAdd                        = '+   ',
  51.     kASSubtract                    = '-   ',
  52.     kASMultiply                    = '*   ',
  53.     kASDivide                    = '/   ',
  54.     kASQuotient                    = 'div ',
  55.     kASRemainder                = 'mod ',
  56.     kASPower                    = '^   ',
  57.     // Unary:
  58.     kASNegate                    = 'neg ',
  59. };
  60.  
  61. // Subroutine Events:
  62. enum {
  63.     kASSubroutineEvent            = 'psbr',
  64.     keyASSubroutineName            = 'snam',
  65. };
  66.  
  67. // Subroutine event parameter prepositions:
  68. enum {
  69.     keyASPrepositionAt            = 'at  ',
  70.     keyASPrepositionIn            = 'in  ',
  71.     keyASPrepositionFrom        = 'from',
  72.     keyASPrepositionFor            = 'for ',
  73.     keyASPrepositionTo            = 'to  ',
  74.     keyASPrepositionThru        = 'thru',
  75.     keyASPrepositionThrough        = 'thgh',
  76.     keyASPrepositionBy            = 'by  ',
  77.     keyASPrepositionOn            = 'on  ',
  78.     keyASPrepositionInto        = 'into',
  79.     keyASPrepositionOnto        = 'onto',
  80.     keyASPrepositionBetween        = 'btwn',
  81.     keyASPrepositionAgainst        = 'agst',
  82.     keyASPrepositionOutOf        = 'outo',
  83.     keyASPrepositionInsteadOf    = 'isto',
  84.     keyASPrepositionAsideFrom    = 'asdf',
  85.     keyASPrepositionAround        = 'arnd',
  86.     keyASPrepositionBeside        = 'bsid',
  87.     keyASPrepositionBeneath        = 'bnth',
  88.     keyASPrepositionUnder        = 'undr',
  89.     keyASPrepositionOver        = 'over',
  90.     keyASPrepositionAbove        = 'abve',
  91.     keyASPrepositionBelow        = 'belw',
  92.     keyASPrepositionApartFrom    = 'aprt',
  93.     keyASPrepositionAbout        = 'abou',
  94.     keyASPrepositionSince        = 'snce',
  95.     keyASPrepositionUntil        = 'till',
  96. };
  97.  
  98. // AppleScript Classes and Enums:
  99. enum {
  100.     cEventIdentifier            = 'evnt',
  101.     cScript                        = 'scpt',
  102.     cSeconds                    = 'scnd',
  103.     cList                        = typeAEList,
  104.     cRecord                        = typeAERecord,
  105. };
  106.  
  107. // List properties:
  108. enum {
  109.     pLength                        = 'leng',
  110.     pReverse                    = 'rvse',
  111.     pRest                        = 'rest',
  112. };
  113.  
  114. // Script properties:
  115. enum {
  116.     pASParent                    = 'pare',
  117. };
  118.  
  119. // Properties of global environment:
  120. enum {
  121.     pASPrintLength                = 'prln',
  122.     pASPrintDepth                = 'prdp',
  123. };
  124.  
  125. // Considerations:
  126. enum {
  127.     enumConsiderations            = 'cons',
  128.     kAECase                        = 'case',
  129.     kAEDiacritic                = 'diac',
  130.     kAEWhiteSpace                = 'whit',
  131.     kAEHyphens                    = 'hyph',
  132.     kAEExpansion                = 'expa',
  133.     kAEPunctuation                = 'punc',
  134.     kAEZenkakuHankaku            = 'zkhk',
  135.     kAESmallKana                = 'skna',
  136.     kAEKataHiragana                = 'hika',
  137.     // AppleScript considerations:
  138.     kASConsiderReplies            = 'rmte',
  139. };
  140.  
  141. // System classes:
  142. enum {
  143.     cZone                        = 'zone',
  144.     cMachine                    = 'mach',
  145. };
  146.  
  147. ////////////////////////////////////////////////////////////////////////////////
  148. #endif
  149. ////////////////////////////////////////////////////////////////////////////////
  150.